﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using Microsoft.VisualStudio.TestTools.UnitTesting;

//namespace Pibby.Core.Tests
//{
//    [TestClass]
//    public class ProgressEventArgsTests
//    {
//        [TestMethod]
//        public void ProgressEventArgs_NewProgress_NoArgs_DefaultProgressIsZero()
//        {
//            ProgressEventArgs args = new ProgressEventArgs ();

//            Assert.AreEqual(0, args.PercentComplete);
//        }

//        [TestMethod]
//        public void ProgressEventArgs_NewProgress_NofM_ConvertsToPercentDone()
//        {
//            ProgressEventArgs args = new ProgressEventArgs (10, 50, null);

//            Assert.AreEqual (20, args.PercentComplete);
//        }

//        [TestMethod]
//        public void ProgressEventArgs_NewProgress_NegativeProgress_AdjustedToZero()
//        {
//            ProgressEventArgs args1 = new ProgressEventArgs(0, 50, null);
//            Assert.AreEqual(0, args1.PercentComplete);

//            ProgressEventArgs args2 = new ProgressEventArgs(5, 50, null);
//            Assert.AreEqual(10, args2.PercentComplete);

//            ProgressEventArgs args3 = new ProgressEventArgs(-1, 50, null);
//            Assert.AreEqual(0, args3.PercentComplete);
//        }

//        [TestMethod]
//        public void ProgressEventArgs_NewProgress_InvalidCurrent_AdjustedTo100Percent()
//        {
//            ProgressEventArgs args1 = new ProgressEventArgs (50, 50, null);
//            Assert.AreEqual (100, args1.PercentComplete);

//            ProgressEventArgs args2 = new ProgressEventArgs(99);
//            Assert.AreEqual(99, args2.PercentComplete);

//            ProgressEventArgs args3 = new ProgressEventArgs(101);
//            Assert.AreEqual(100, args3.PercentComplete);

//            ProgressEventArgs args4 = new ProgressEventArgs(1000, 999, null);
//            Assert.AreEqual(100, args4.PercentComplete);
//        }
//    }
//}
